package pl.maciejziarko.mshare.web.mvc;

import org.springframework.validation.FieldError;

/**
 * @author Maciej Ziarko
 */

public final class NicerFieldError<T> extends FieldError {
    public NicerFieldError(String objectName, String field, T rejectedValue,
                           String defaultMessage) {
        super(objectName, field, rejectedValue, false, null, null, defaultMessage);
    }
    
    public NicerFieldError(String objectName, String field, String defaultMessage) {
        this(objectName, field, null, defaultMessage);
    }
}
